package Week_3.E_Mergesort;

/**
 * @author Myhaylo Kotsyuruba
 * @version v.   23.03.13
 */
public class MyInt implements Comparable<MyInt> {

    public int i;

    public MyInt(int i) {
        this.i = i;
    }

    @Override
    public int compareTo(MyInt o) {
        if(this.i > o.i) return 1;
        if(this.i < o.i) return -1;
        return 0;
    }

    @Override
    public MyInt clone() {
        return new MyInt(i);
    }
}
